Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/integrate-sdk #34

Merged
merged 7 commits into from
Aug 21, 2024
Merged

Feature/integrate-sdk #34

merged 7 commits into from
Aug 21, 2024

Conversation

Ahmedhossamdev
Copy link
Member

This PR contains the integration of the SDK in the arrivalsAndDepartures and stop endpoints

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Couple questions for you before merging!

package.json Show resolved Hide resolved

if (!response.ok) {
if (response.code !== 200) {
error(500, 'Unable to fetch arrivals-and-departures-for-stop.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the error() method here function function like an exception? i.e. does it interrupt control flow?

Copy link
Member Author

@Ahmedhossamdev Ahmedhossamdev Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git

I don't know, I tried it now, and it seems not interrupt the flow, but when I enter the stop route endpoint, the error message appears in the top

image

https://learn.svelte.dev/tutorial/error-basics

but according to svelte docs the expected error message is shown to the user.

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super cool. I'm excited to see this get used across the codebase. I'm going to merge it now and you can continue adding new support for other endpoints

@aaronbrethorst aaronbrethorst merged commit f16738a into main Aug 21, 2024
4 checks passed
@aaronbrethorst aaronbrethorst deleted the feature/integrate-sdk branch August 21, 2024 21:54
@aaronbrethorst
Copy link
Member

aaronbrethorst commented Aug 21, 2024

FYI @tarunsinghofficial - make sure you pull main and do an npm install :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants